package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Customer;
import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.CustomerQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICustomerService {
    void delete(Long id);
    void save(Customer customer);
    Customer get(Long id);
    List<Customer> listAll();
    void update(Customer customer);

    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(CustomerQuery qo);

    /**\
     * 查询指定角色dn 的用户信息
     * @param sns
     * @return
     */
    List<Employee> selectByRoleSn(String ... sns);

    Customer selectByTel(String tel);
    String getTelById(Long id);
    String getQQById(Long id);

    Customer selectByQQ(String qq);

    Integer[] selectByStatus();
}
